public class MethodDemo1 {
    public MethodDemo1() {
    }

    public static void main(String[] args) {
        int data = add(10, 20);
        System.out.println(data);
    }

    public static int add(int a, int b) {
        int c = a + b;
        return c;
    }
}
